package com.jason.system;

import io.github.yedaxia.apidocs.Docs;
import io.github.yedaxia.apidocs.DocsConfig;
import io.github.yedaxia.apidocs.plugin.markdown.MarkdownDocPlugin;

/**
 * @author jie
 * @version 1.0
 * success come from self-discipline
 * @date 2021/3/29 15:03
 */

public class TestJApiDocs {
    // 项目名称
    private static final String PROJECT_NAME = "businessSystem";
    // 版本
    private static final String VERSION = "V2.0";
    // 路径
    private static final String PROJECT_PATH = "E:\\businessSystem\\SWPU";

    public static void main(String[] args) {

            DocsConfig config = new DocsConfig();
            config.setProjectPath(PROJECT_PATH + "\\src");
            config.setProjectName(PROJECT_NAME);
            config.setApiVersion(VERSION);
            config.setDocsPath(PROJECT_PATH + "\\docs");
            config.setAutoGenerate(Boolean.TRUE);
            config.addPlugin(new MarkdownDocPlugin());
            Docs.buildHtmlDocs(config);
    }
}
